home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
amok_lha
/
amok24.lha
/
DME
/
SRC
/
source.zoo
/
defs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1989-07-03
|
3KB
|
150 lines
/*
* DEFS.H
*
* (C)Copyright 1987 by Matthew Dillon, All Rights Reserved
*
* ARexx support added 03/19/88 - Kim DeVaughn
*
* M2Amiga error-support added 05/9/1988 - Volker Rudolph
*
*/
#define AREXX 1
#define M2ERR 1
/* use this for short version of dme
#define AREXX 0
#define M2ERR 0
#define NO_DO_CTAGS 1
#define NO_DO2 1
#define NO_DO_REF 1
*/
#include <exec/types.h>
#include <exec/io.h>
#include <devices/keymap.h>
#include <devices/console.h>
#include <exec/memory.h>
#include <intuition/intuition.h>
#include <workbench/icon.h>
#include <workbench/startup.h>
#include <workbench/workbench.h>
#include <local/typedefs.h>
#include <local/xmisc.h>
#if AREXX
#include "rexx/storage.h"
#include "rexx/rxslib.h"
#include "rexx/rexxio.h"
#include "rexx/errors.h"
#endif
#if M2ERR
#include "m2err.h"
#endif
#define MAXTOGGLE 256
#define QMOVE (0x6B|0x80)
#define COLT(n) (XTbase + (n) * Xsize)
#define ROWT(n) (YTbase + (n) * Ysize)
#define COL(n) (Xbase + (n) * Xsize)
#define ROW(n) (Ybase + (n) * Ysize)
typedef struct WBStartup WBS;
typedef struct DiskObject DISKOBJ;
extern WBS *Wbs;
extern DISKOBJ *Do;
extern short Xsize, Ysize;
extern short XTbase, YTbase;
extern short Rows, Columns;
extern short Xbase, Ybase;
extern short Xpixs, Ypixs;
extern ubyte *av[];
extern char Wdisable;
typedef struct _ED {
MNODE Node;
WIN *Win;
FONT *Font; /* da font, da font! */
long Topline, Topcolumn;
long Line, Column;
long Lines, Maxlines;
ubyte **List;
ubyte Name[64];
ubyte Wtitle[130];
char Modified;
ubyte Tabstop;
ubyte Margin;
char Insertmode;
char IgnoreCase;
char Replacemode;
char Wordwrap;
char iconmode; /* window in icon mode */
short Winx; /* save state of non-icon window */
short Winy;
short Winwidth;
short Winheight;
short IWinx, IWiny; /* save state of icon window */
long dirlock; /* directory lock */
#if M2ERR
/* Changes for M2Amiga error-support */
long err_num; /* number of errors in current file */
long last_err; /* number of last error */
m2_error *err_list; /* errornumbers and messages */
#endif
} ED;
extern long BSline, BEline;
extern short BSchar, BEchar;
extern ED *BEp;
#ifndef NULL
#define NULL 0
#endif
#ifdef E
#undef E
#endif
extern MLIST DBase;
extern MLIST PBase;
extern ED *Ep;
extern char Overide;
extern char Savetabs;
extern char memoryfail, Nsu, Msgchk;
extern ubyte CtlC;
extern ubyte Current[256];
extern ubyte Space[32];
extern short Clen;
extern char Abortcommand, MShowTitle;
extern char Comlinemode;
extern RP *Rp;
extern WIN *Win;
extern char *Partial;
extern char *String;
extern ubyte Deline[256];
extern short ScreenDepth;
extern ubyte *allocl(), *allocb();
extern char *keyspectomacro();
extern char *menutomacro();
extern char *getvar();
extern char *GetDEnv();
extern ED *finded();
extern void search_operation();
extern void *malloc(), *AllocMem(), *strcpy();
extern long Dirlock;
extern PORT *IPCPort;
extern long DResBase;